package Model

import (
	"time"
)

// 返回报表
type ResultPostTransfer struct {
	//No                 int    `json:"no" form:"no"`
	DepartmentName     string `json:"department_name" form:"department_name"`
	OriginalPostName   string `json:"origin_post_name" form:"origin_post_name"` //部门编号
	NewPostName        string `json:"new_post_name" form:"new_post_name"`
	Name               string `json:"name" form:"name"` //姓名
	Sex                string `json:"sex" form:"sex"`
	TransferDate       string `json:"transfer_date" form:"transfer_date"`
	ReasonsForTransfer string `json:"reasons_for_transfer" form:"reasons_for_transfer"`
}

// 添加
type NewPostTransfer struct {
	Id                       string    `form:"id" json:"id"`
	Name                   string `json:"name" form:"name"`
	NewPostName        string `json:"new_post_name" form:"new_post_name"`
	TransferDate             string `form:"transfer_date" json:"transfer_date"`                           //调动日期
	ReasonsForTransfer       string    `form:"reasons_for_transfer" json:"reasons_for_transfer"`             //调动原因
}

// 返回查询
type ReturnPostTransfer struct {
	Id                 string `json:"id" form:"id"`
	Name               string `json:"name" form:"name"` //姓名
	Sex                string `json:"sex" form:"sex"`
	OriginPostName   string `json:"origin_post_name" form:"origin_post_name"`
	NewPostName        string `json:"new_post_name" form:"new_post_name"`
	TransferDate       string `json:"transfer_date" form:"transfer_date"`
	ReasonsForTransfer string `json:"reasons_for_transfer" form:"reasons_for_transfer"`
}

/*岗位调动员工表*/
type PostTransferEmployee struct {
	TransferId         int       `json:"transfer_id" form:"transfer_id"`                   //岗位调动编号
	Id                 string    `json:"id" form:"id"`                                     //员工编号
	OriginPostNumber int       `json:"origin_post_number" form:"origin_post_number"` //原岗位编号
	NewPostNumber      int       `json:"new_post_number" form:"new_post_number"`           //新岗位编号
	TransferDate       time.Time `json:"transfer_date" form:"transfer_date"`               //调动日期
	ReasonsForTransfer string    `json:"reasons_for_transfer" form:"reasons_for_transfer"` //调动原因
}
